<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <link rel="shortcut icon" href="${pageContext.request.contextPath}/images/logo.ico" type="image/x-icon">
    <title>管理员页</title>
    <!-- 1. 导入CSS的全局样式 -->
    <link href="${pageContext.request.contextPath}/css/bootstrap.css" rel="stylesheet">
    <!-- 2. jQuery导入，建议使用1.9以上的版本 -->
    <script src="${pageContext.request.contextPath}/js/jquery-3.6.0.js"></script>
    <!-- 3. 导入bootstrap的js文件 -->
    <script src="${pageContext.request.contextPath}/js/bootstrap.js"></script>
    <style>

        .head_flex img {
            margin: 10px;
            height: 28px;
            width: 80px;
        }
        .mytable {
            display: flex;
            justify-content: center;
        }
        table {
            border-collapse: collapse;
            width: 100%;
            /*font-size: 20px;*/
        }
        caption {
            font-size: 25px;
            font-weight: 800;
        }
        table, th, td {
            border: 1px solid black;
        }
        th {
            height: 50px;
            text-align: center;
        }
        .success th {
            background-color: #dff0d8;
        }
        td {
            height: 50px;
            text-align: center;
        }
        tr:nth-child(even) {
            background-color: #f2f2f2;
        }
        th {
            background-color: white;
        }

        .footer2 p {
            margin: 10px;
        }

        .edit_content button{
            width: 30%;
            height: 30px;
            border: 2px solid #909399;
            border-radius: 5px;
            background-color: #909399;
        }
        .edit_content button a {
            color: white;
            text-decoration:none;
        }
        .edit_content button:hover {
            opacity: 0.5;
        }
        caption {
            font-size: 25px;
            font-weight: 800;
        }
        .form-inline {
            /*            background-color: #a6e1ec;*/
            margin: 0 auto;
            margin-top: 10px;
            font-size: 16px;
            width: 99%;
            display: flex;
            justify-content: space-between;
            color: #787878;
        }


    </style>
</head>
<body>
<h3 style="text-align: center;font-weight: bold ;width: 95% ; margin: 10px auto">需要更新的节点</h3>
<%--<div style="width: 80% ;margin-bottom: 15px" >
    <form class="form-inline" >
        <div class="form-group" >
            <label for="IMEI">IMEI号</label>
            <input type="text" class="form-control" id="IMEI" value="*">
        </div>
        <div class="form-group" >
            <label for="project_name">项目名称</label>
            <input type="text" class="form-control" id="project_name" value="*">
        </div>
        <div class="form-group" >
            <label for="node_location">节点地址</label>
            <input type="text" class="form-control" id="node_location" value="*">
        </div>
        <button type="submit" class="btn btn-success">检索</button>
    </form>
</div>--%>

<div class="mytable">
    <table border="1" >
        <!--<caption style="text-align: center; color: #0f0f0f" >岭南师范学院灭蚊灯记录卡</caption>-->
        <tr class="success">
            <%--<th>全选<input type="checkbox" id="firstCb" style="width: 25px"></th>--%>
            <th>序号</th>
            <th >IMEI号</th>
            <th>项目名称</th>
            <th>项目位置</th>
            <th>节点位置</th>
            <th>经过总次数</th>
            <th>操作</th>
        </tr>
        <c:forEach items="${warning}" var="data" varStatus="s">
            <tr>
<%--                <td><input type="checkbox" name="uid" value="${data.node_id}" style="width: 25px"></td>--%>
                <td>${s.count}</td>
                <td>${data.IMEI}</td>
                <td>${data.project_name}</td>
                <td>${data.project_location}</td>
                <td>${data.node_location}</td>
                <td>${data.sum}</td>
                <td><a class="btn btn-default btn-sm" href="updateWarningServlet?type=2&IMEI=${data.IMEI}">更新</a>&nbsp;</td>
            </tr>
        </c:forEach>
    </table>

</div>

<script type="text/javascript">

</script>
</body>
</html>